Skip to content

fix(ios): name keyboard enter when a dismiss refusal sees a submitting Return key - #4768

Merged
thymikee merged 1 commit into
mainfrom
fix/ios-dismiss-names-keyboard-enter
Nov 19, 2026
Merged

thymikee merged 1 commit into
mainfrom
fix/ios-dismiss-names-keyboard-enter

Conversation

@thymikee

@thymikee thymikee commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

keyboard dismiss on iOS refuses a keyboard it cannot hide (keyboard_dismiss_unavailable, dispatched: no). On a search field the useful next step is usually Return, but the hint only named the Hide Keyboard key and a pan gesture, so agents retried dismiss or got stuck behind the keyboard.

The refusal now reads the Return key its own status already observed. For search, go, done and send it opens with keyboard enter and what it will do; send is explicit that it sends. Other keys keep the old hint. Dismiss still never presses Return (#4644), and no extra device read is added.

4 files: runner refusal + call site, a runner unit test, and the keyboard help text.

$ agent-device keyboard dismiss
Error (UNSUPPORTED_OPERATION): The Apple runner cannot dismiss this keyboard automatically. Not dispatched. Next: To submit this search, run keyboard enter. Inspect the screen and press the visible Hide Keyboard key ...

Validation

  • Tested at 2b8165a's content (pre-split head) on an iOS 27.0 simulator with the Bluesky prod app: fill the search field, keyboard dismiss returns the output above; keyboard enter then submits and keyboard status reports hidden.
  • New runner unit test testKeyboardDismissRefusalNamesKeyboardEnterOnlyWhereReturnEndsTheEdit; CI owns the Swift unit and iOS device lanes.
  • Local check:affected not run (host load average 300–1000); CI validates the pushed head.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

…g Return key

keyboard dismiss on iOS refuses a visible keyboard it cannot hide. On a
search field the useful next step is usually Return, but the hint named
only the Hide Keyboard key and a pan gesture. The refusal now reads the
Return key its own status already observed and, for search, go, done and
send, names keyboard enter and what it will do. Dismiss still never
presses Return (#4644).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.41 MB 6.41 MB +857 B
Package (unpacked) 6.41 MB 6.41 MB +857 B
Package (download) 1.95 MB 1.95 MB +238 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 24.0 ms 24.7 ms +0.7 ms
CLI --help 50.4 ms 47.5 ms -2.9 ms

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 2b8165a

No open findings.

Reviewed with this repository's own Sentinel configuration (eeff795f47df).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee

Copy link
Copy Markdown
Member Author

This is ready at 2b8165a. The code looks right: the dismiss refusal now names keyboard enter for the search, go, done and send keys.

All 19 checks pass at this head. Only the search key was exercised live, so go, done and send rest on the unit test.

Not blocking: the new test calls keyboardDismissRefusal(returnKey:) directly, so the production mapping in RunnerTests+CommandExecution.swift is not covered, and one assertion on the hint in the existing Done case in RunnerRequestPanelTests.swift would cover it; the Done hint says "To finish editing, run keyboard enter", which points a dismiss-seeking agent at the submit side effect from #4644, so wording it like the send hint, with the submit warning, would be safer; commands.md could add one clause about the named keys; and returnKey could stay typed on RunnerKeyboardStatus instead of being parsed back from a string. Take or leave any of these.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 19, 2026
@thymikee
thymikee merged commit 7f4c774 into main Nov 19, 2026
19 checks passed
@thymikee
thymikee deleted the fix/ios-dismiss-names-keyboard-enter branch November 19, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant